#include "VOSMConfigHelper.h"
#include "opencv2/myopencv.hpp"

void VOSMConfigHelper::load(std::string filename) {
	this->filename = filename;
	cv::FileStorage fs(filename, cv::FileStorage::READ);
	cv::FileNode vosmParam = fs["VOSM"];

	vosmParam["opencvRoot"] >> opencvRoot;
	vosmParam["imageDir"] >> imageDir;
	vosmParam["annotationDir"] >> annoDir;
	vosmParam["shapeFile"] >> shapeFile;
	vosmParam["modelDir"] >> modelDir;
	vosmParam["dataFormat"] >> dataFormat;
}
